<html>
<head>
<meta charset="UTF-8">
<title>快递订单查询</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="../../css/font.css">
<link rel="stylesheet" href="../../css/xadmin.css">
<script type="text/javascript"
	src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="../../js/layui.js"
	charset="utf-8"></script>
<script type="text/javascript" src="../../js/xadmin.js"></script>
<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<div class="x-nav">
		<span class="layui-breadcrumb"> <a href="">首页</a> <a href="">财务管理</a>
			<a> <cite>快递订单列表</cite></a>
		</span> <a class="layui-btn layui-btn-small"
			style="line-height: 1.6em; margin-top: 3px; float: right"
			href="javascript:location.replace(location.href);" title="刷新"> <i
			class="layui-icon" style="line-height: 30px">ဂ</i></a>
	</div>
		<div class="x-body">
		<div class="layui-row">
			
				<form class="layui-form layui-col-md12 x-so" >
			
				<div class="layui-input-inline">
					<select name="express_paytype">
						<option>支付方式</option>
						<option value="支付宝">支付宝</option>
						<option value="微信">微信</option>
					</select>
				</div>

				<input type="text" name="express_id" placeholder="请输入订单号"
					autocomplete="off" class="layui-input">
				<button type="submit" class="layui-btn" lay-submit="" lay-filter="search">
					<i class="layui-icon">&#xe615;</i>
				</button>
			</form>
			
		</div>
		<xblock>
		<button class="layui-btn layui-btn-danger" id="daochu">
			导出
		</button>
		</xblock>

		<table class="layui-table" id="aa"
			lay-data="{url:'/ringspace-web/order/selectStoreOrderList',page:true,limit:'5'}"
			lay-filter="demo">
			<thead>
				<tr>
					<th lay-data="{checkbox:true,fixed:'left'}"></th>
					<th lay-data="{ field:'store_id',width:200}">存储订单编号</th>
					<th lay-data="{ field:'site_emp_id',width:200}">站点员工编号</th>
					<th lay-data="{ field:'user_id',width:200}">用户编号</th>
					<th lay-data="{ field:'user_name',width:200}">用户名称</th>
					<th lay-data="{ field:'cargo_id',width:200}">货物编号</th>
					<th lay-data="{ field:'amount',width:200}">订单金额</th>
					<th lay-data="{ field:'paytype',width:200}">支付类型</th>
					<th lay-data="{ field:'store_time',width:200}">存储订单时间</th>
				</tr>
			</thead>
		</table>
	</div>

	<script>
		var html = "<html><head><meta charset='utf-8' /></head><body>"
				+ document.getElementById("aa").outerHTML + "</body></html>";
		var blob = new Blob([ html ], {
			type : "application/vnd.ms-excel"
		});
		var url_link = URL.createObjectURL(blob);
		var daochu = document.getElementById("daochu");
		daochu.onclick = function() {
			window.open(url_link);
		};
	</script>
	<script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a>
   </script>
	<script src="/ringspace-web/manager/lib/layui/layui.js" charset="utf-8"></script>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui
				.use(
						'table',
						function() {
							var table = layui.table;
							//监听表格复选框选择
							table.on('checkbox(demo)', function(obj) {
								console.log(obj)
							});

							var $ = layui.$, active = {
								getCheckData : function() { //获取选中数据
									var checkStatus = table
											.checkStatus('idTest'), data = checkStatus.data;
									layer.alert(JSON.stringify(data));
								},
								getCheckLength : function() { //获取选中数目
									var checkStatus = table
											.checkStatus('idTest'), data = checkStatus.data;
									layer.msg('选中了：' + data.length + ' 个');
								},
								isAll : function() { //验证是否全选
									var checkStatus = table
											.checkStatus('idTest');
									layer.msg(checkStatus.isAll ? '全选' : '未全选')
								}
							};

							$('.demoTable .layui-btn').on('click', function() {
								var type = $(this).data('type');
								active[type] ? active[type].call(this) : '';
							});
						});
	</script>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use('table', function() {
			var table = layui.table;

		});

		layui.use([ 'laypage', 'layer' ], function() {
			var laypage = layui.laypage, layer = layui.layer;

			//完整功能
			laypage.render({
				elem : 'demo7',
				count : 100,
				layout : [ 'count', 'prev', 'page', 'next', 'limit', 'skip' ],
				jump : function(obj) {
					console.log(obj)
				}
			});

		});
	</script>
	<script>
		layui.use('laydate', function() {
			var laydate = layui.laydate;

			//执行一个laydate实例
			laydate.render({
				elem : '#start' //指定元素
			});

			//执行一个laydate实例
			laydate.render({
				elem : '#end' //指定元素
			});
		});
	</script>
</body>

</html>